package com.mzj.saas.mservice.property.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author hikari
 * @since 2021-05-19
 */
public class EstateRepairsCostVO implements Serializable {
    private static final long serialVersionUID = -4757610999183319759L;

    private Long id;

    /**
     * 小区id
     */
    @NotNull(message = "小区id不能为空")
    private String communityId;

    private String communityName;

    /**
     * 类型：1电路、2暖气、3上下水、4门窗、5其他
     */
    @NotNull(message = "类型不能为空")
    private Integer type;

    private String typeName;

    /**
     * 维修项目
     */
    @NotBlank(message = "维修项目不能为空")
    private String repairItem;

    /**
     * 材料费
     */
    private BigDecimal materialsCost;

    /**
     * 型号规格
     */
    private String model;

    /**
     * 劳务费
     */
    private BigDecimal serviceCost;

    /**
     * 操作人
     */
    private String operatorId;

    private String operatorName;

    /**
     * 状态 1正常 2删除
     */
    private Integer status;

    /**
     * 录入时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operatorTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getRepairItem() {
        return repairItem;
    }

    public void setRepairItem(String repairItem) {
        this.repairItem = repairItem;
    }

    public BigDecimal getMaterialsCost() {
        return materialsCost;
    }

    public void setMaterialsCost(BigDecimal materialsCost) {
        this.materialsCost = materialsCost;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public BigDecimal getServiceCost() {
        return serviceCost;
    }

    public void setServiceCost(BigDecimal serviceCost) {
        this.serviceCost = serviceCost;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getOperatorTime() {
        return operatorTime;
    }

    public void setOperatorTime(Date operatorTime) {
        this.operatorTime = operatorTime;
    }
}
